#ifndef _PROTECT_H__
#define _PROTECT_H__

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

typedef struct _Node{
    int data;
    struct _Node *next;
}node_t;

int creat_node (node_t **p,int num);
int printf_list (node_t *phead);
int insert_list_by_head (node_t *phead,int num);
int insert_list_by_tail (node_t *phead,int num);
int insert_list_by_pos(node_t *phead,int pos,int num);
int  delete_list_by_head(node_t *phead);
int delete_list_by_tail(node_t *phead);
int delete_list_by_pos(node_t *phead, int pos);
int modify_list_by_pos(node_t *phead, int pos, int new_num);
int search_list_by_pos(node_t *phead, int pos, int *buff);
int tichong_list(node_t *phead);

#endif